home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / ASTRONOM / H139.ZIP / UI101.ZIP / IO / KB / KB_SPEC.C < prev    next >
C/C++ Source or Header  |  1991-11-04  |  3KB  |  119 lines

  1. /*************************************************************************
  2.  
  3.     kb_spec.c    Keyboard (KB) Subroutines
  4.             for Bywater Software
  5.  
  6.             Specification for developing new implementations.
  7.  
  8.             Copyright (c) 1991, Ted A. Campbell
  9.  
  10.             Bywater Software
  11.             P. O. Box 4023 
  12.             Duke Station 
  13.             Durham, NC  27706
  14.  
  15.             email: tcamp@hercules.acpub.duke.edu
  16.  
  17.     Copyright and Permissions Information:
  18.  
  19.     All U.S. and international copyrights are claimed by the
  20.     author. The author grants permission to use this code
  21.     and software based on it under the following conditions:
  22.     (a) in general, the code and software based upon it may be 
  23.     used by individuals and by non-profit organizations; (b) it
  24.     may also be utilized by governmental agencies in any country,
  25.     with the exception of military agencies; (c) the code and/or
  26.     software based upon it may not be sold for a profit without
  27.     an explicit and specific permission from the author, except
  28.     that a minimal fee may be charged for media on which it is
  29.     copied, and for copying and handling; (d) the code must be 
  30.     distributed in the form in which it has been released by the
  31.     author; and (e) the code and software based upon it may not 
  32.     be used for illegal activities. 
  33.  
  34. **************************************************************************/
  35.  
  36. #include "kb.h"
  37.  
  38. /*************************************************************************
  39.  
  40.     FUNCTION:       kb_init()
  41.  
  42.     DESCRIPTION:    This function should perform any initialization
  43.             necessary for the keyboard system.
  44.  
  45.     INPUT:          none.
  46.  
  47.     RETURNS:        none.
  48.  
  49. **************************************************************************/
  50.  
  51. kb_init()
  52.     {
  53.     }
  54.  
  55. /*************************************************************************
  56.  
  57.     FUNCTION:       kb_deinit()
  58.  
  59.     DESCRIPTION:    This function should perform any necessary
  60.             deinitialization, that is, return the keyboard
  61.             to its default state when a Simple Software
  62.             program is to be exited.
  63.  
  64.     INPUT:          none.
  65.  
  66.     RETURNS:        none.
  67.  
  68. **************************************************************************/
  69.  
  70. kb_deinit()
  71.     {
  72.     }
  73.  
  74. /*************************************************************************
  75.  
  76.     FUNCTION:       kb_rxstat()
  77.  
  78.     DESCRIPTION:    This function determines whether a character is
  79.             ready from the console.  The function is used
  80.             especially in telecommunications programs,
  81.             where it is necessary to poll the keyboard
  82.             without locking up the program waiting for a
  83.             response.
  84.  
  85.     INPUT:          none.
  86.  
  87.     RETURNS:        The function returns FALSE if no character is
  88.             available and TRUE if a character is available.
  89.  
  90. **************************************************************************/
  91.  
  92. kb_rxstat()
  93.      {
  94.      }
  95.  
  96. /*************************************************************************
  97.  
  98.     FUNCTION:       kb_rx()
  99.  
  100.     DESCRIPTION:    This function returns a single character from
  101.             the keyboard.  If a character is not available
  102.             it waits.  The function should be able to
  103.             recognize any special keys, and return the
  104.             appropriate KB conventions designated for
  105.             them in "kb.h".
  106.  
  107.     INPUT:          none.
  108.  
  109.     RETURNS:        The function returns the ASCII code for the
  110.             key pressed, or the Simple Software KB convention
  111.             (see kb.h) for a function or other special key.
  112.  
  113. **************************************************************************/
  114.  
  115. kb_rx()
  116.      {
  117.      }
  118.  
  119.